<?php

$uiObj = Blyn::app()->getActiveOperation()->getUIManager();

$views = $uiObj->getViews();

if (Blyn::app()->getUIManager()->getCurrentScreenFlow() != NULL)
    $views['screenFlowStartView'] = array('view' => BUIBase::ajax_startView_screenFlow, 'data' => NULL);
else {
    $views['screenStartView'] = array('view' => BUIBase::ajax_startView_screen, 'data' => NULL);
}

foreach ($views as $view) {
    $data = isset($view['data']) ? $view['data'] : NULL;
    $uiObj->renderView($view['view'], $data);
}
?>

